export default {
  target: 'static',
  dir: {
    assets: 'assets',
    pages: 'pages',
    static: 'static',
    store: 'store',
    locales: 'locales'
  },
  // Global page headers: https://go.nuxtjs.dev/config-head
  head: {
    title: 'intelOlympic',
    htmlAttrs: {
      lang: 'en'
    },
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { hid: 'description', name: 'description', content: '' },
      { name: 'format-detection', content: 'telephone=no' }
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
    ]
  },

  // Global CSS: https://go.nuxtjs.dev/config-css
  css: [
    'ant-design-vue/dist/antd.css',
    '@assets/css/basic.css'
  ],
  loading: { color: 'cyan' },
  router: {
    base: process.env.NODE_ENV === 'production'?'/guest_experience_2022/':'/',
    middleware: 'i18n'
  },
  plugins: [
    { src: '~/plugins/antd-ui', ssr: true },
    '~/plugins/i18n.js'
  ],
  generate: {
    routes: ['/', '/en']
  }
}
